from rest_framework.viewsets import ModelViewSet

from goods.models import SPUSpecification
from meiduo_admin.good.specs_serializer import SpecsSerializer
from meiduo_admin.my_paginate import MyPageNumberPagination


class SpecsViewSet(ModelViewSet):
    pagination_class = MyPageNumberPagination
    queryset = SPUSpecification.objects.all()
    serializer_class = SpecsSerializer